<template>
  <div>
      <h4>{{name}}</h4>
  </div>
</template>

<script>
export default {
  data () {
    return {
      arr: ['小花', '小明', '小可爱', '小王'],
      name: ''
    }
  },
  created () {
    const i = Math.floor((Math.random() * this.arr.length))
    this.name = this.arr[i]
  }
}
</script>

<style>

</style>
